/*
 * Copyright 2023-2085 xujin <ceo@itgrail.com>
 *
 * Licensed under the Grail License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * https://itgrail.com/docs?id=3&catalogId=87
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.itgrail.pilot.app.command.cmo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("更新Okr周期参数")
public class UpdateOkrPeriodCmd extends CommonCommand {

    @ApiModelProperty("id")
    private Integer id;

    @ApiModelProperty("周期名称")
    private String name;

    @ApiModelProperty("周期长度")
    private String periodLength;

    @ApiModelProperty("周期类型 默认为月  0月 1季度 2年")
    private Byte periodType;

    @ApiModelProperty("生效日期")
    private String startDate;

    @ApiModelProperty("是否开启年度okr  默认0开启  1关闭")
    private Byte yearEnable;

    @ApiModelProperty("是否开启 1关闭 0启用")
    private Byte showEnable;

    @ApiModelProperty("默认可以编辑Objective KeyResult 0编辑所有  1只允许编辑评分 2都不可编辑")
    private Byte isEdit;

    @ApiModelProperty("周期分类key")
    private String classifyKey;

    @ApiModelProperty("开始日期")
    private Date startTime;

    @ApiModelProperty("结束日期")
    private Date endTime;

    @ApiModelProperty("周期控制按钮")
    private OkrPeriodButtonCmd okrPeriodButtonCmd;

    @ApiModelProperty("周期管控表")
    private AddPeriodControlCmd addPeriodControlCmd;
}



